﻿ /**
 * 子模块路由
 * Lc
 */

var router = function($urlRouterProvider, $stateProvider){

 	$stateProvider

    //待办列表
    .state('app.eventList', {
        url: "/eventList",
        views: {
            'main@' : {
                template : require('./views/eventList.html'),
                controller : 'eventList',
            }
        },
        resolve:{
            
        }
    })
    //完善企业信息
    .state('app.completeInfo', {
        url: "/completeInfo",
        views: {
            'main@' : {
                template : require('./views/completeInfo.html'),
                controller : 'completeInfo',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }
        }
    })
    
    .state('app.viewPeople', {
        url: "/viewPeople",
        views: {
            'main@' : {
                template : require('./views/viewPeople.html'),
                controller : 'viewPeople',
            }
        },
        resolve:{

        }
    })   
    .state('app.viewnotice', {
        url: "/viewnotice?type",
        views: {
            'main@' : {
                template : require('./views/viewnotice.html'),
                controller : 'viewnotice',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }

        }
    })
    .state('app.viewnoticelook', {
        url: "/viewnoticelook",
        views: {
            'main@' : {
                template : require('./views/viewnoticelook.html'),
                controller : 'viewnoticelook',
            }
        },
        resolve:{
            date2str: function (utilservice) {
              return utilservice.date2str;
            },
            getDate : function(utilservice){
              return utilservice.getDate;
            },
            str2date: function (utilservice) {
              return utilservice.str2date;
            }

        }
    })
    .state('app.cityApplyNoAudit', {
        url: "/cityApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/cityApplyNoAudit.html'),
                controller : 'cityApplyNoAudit',
            }
        },
        resolve:{

        }
    })   
     .state('app.cityApplyYesAudit', {
        url: "/cityApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/cityApplyYesAudit.html'),
                controller : 'cityApplyYesAudit',
            }
        },
        resolve:{

        }
    })
     .state('app.cityApplyThirdAudit', {
        url: "/cityApplyThirdAudit",
        views: {
            'main@' : {
                template : require('./views/cityApplyThirdAudit.html'),
                controller : 'cityApplyThirdAudit',
            }
        },
        resolve:{

        }
    })
    .state('app.cityThirdApplyAuditInfo', {
        url: "/cityThirdApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/cityThirdApplyAuditInfo.html'),
                controller : 'cityThirdApplyAuditInfo',
            }
        },
        resolve:{

        }
    })
    .state('app.cityThirdApplyAuditInfoNo', {
        url: "/cityThirdApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/cityThirdApplyAuditInfoNo.html'),
                controller : 'cityThirdApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    })
    .state('app.cityThirdApplyNoAudit', {
        url: "/cityThirdApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/cityThirdApplyNoAudit.html'),
                controller : 'cityThirdApplyNoAudit',
            }
        },
        resolve:{

        }
    })
    .state('app.cityThirdApplyYesAudit', {
        url: "/cityThirdApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/cityThirdApplyYesAudit.html'),
                controller : 'cityThirdApplyYesAudit',
            }
        },
        resolve:{

        }
    })


    .state('app.addviewlidex', {
        url: "/addviewlidex",
        views: {
            'main@' : {
                template : require('./views/addviewlidex.html'),
                controller : 'addviewlidex',
            }
        },
        resolve:{

        }
    })
    .state('app.viewalevelindex', {
        url: "/viewalevelindex",
        views: {
            'main@' : {
                template : require('./views/viewalevelindex.html'),
                controller : 'viewalevelindex',
            }
        },
        resolve:{

        }
    })    
        .state('app.addevaluatepeople', {
        url: "/addevaluatepeople",
        views: {
            'main@' : {
                template : require('./views/addevaluatepeople.html'),
                controller : 'addevaluatepeople',
            }
        },
        resolve:{

        }
    }) 
    
    .state('app.countryApplyBase', {
        url: "/countryApplyBase",
        views: {
            'main@' : {
                template : require('./views/countryApplyBase.html'),
                controller : 'countryApplyBase',
            }
        },
        resolve:{

        }
    }) 
    
    .state('app.countryApplyAuditInfo', {
        url: "/countryApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/countryApplyAuditInfo.html'),
                controller : 'countryApplyAuditInfo',
            }
        },
        resolve:{

        }
    }) 
   .state('app.countryApplyAuditInfoNo', {
        url: "/countryApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/countryApplyAuditInfoNo.html'),
                controller : 'countryApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    }) 
   .state('app.countryApplyNoAudit', {
        url: "/countryApplyNoAudit",
        views: {
            'main@' : {
                template : require('./views/countryApplyNoAudit.html'),
                controller : 'countryApplyNoAudit',
            }
        },
        resolve:{

        }
    }) 
   .state('app.countryApplyYesAudit', {
        url: "/countryApplyYesAudit",
        views: {
            'main@' : {
                template : require('./views/countryApplyYesAudit.html'),
                controller : 'countryApplyYesAudit',
            }
        },
        resolve:{

        }
    }) 
   .state('app.countryApplyAudit', {
        url: "/countryApplyAudit",
        views: {
            'main@' : {
                template : require('./views/countryApplyAudit.html'),
                controller : 'countryApplyAudit',
            }
        },
        resolve:{

        }
    }) 

  .state('app.cityApplyAuditInfoNo', {
        url: "/cityApplyAuditInfoNo",
        views: {
            'main@' : {
                template : require('./views/cityApplyAuditInfoNo.html'),
                controller : 'cityApplyAuditInfoNo',
            }
        },
        resolve:{

        }
    }) 
      .state('app.cityApplyAuditInfo', {
        url: "/cityApplyAuditInfo",
        views: {
            'main@' : {
                template : require('./views/cityApplyAuditInfo.html'),
                controller : 'cityApplyAuditInfo',
            }
        },
        resolve:{

        }
    }) 
      .state('app.cityApplyFirstAudit', {
        url: "/cityApplyFirstAudit",
        views: {
            'main@' : {
                template : require('./views/cityApplyFirstAudit.html'),
                controller : 'cityApplyFirstAudit',
            }
        },
        resolve:{

        }
    }) 

   .state('app.viewevaluatepeople', {
        url: "/viewevaluatepeople",
        views: {
            'main@' : {
                template : require('./views/viewevaluatepeople.html'),
                controller : 'viewevaluatepeople',
            }
        },
        resolve:{

        }
    }) 
    //企业审核
   .state('app.review_company', {
        url: "/review_company",
        views: {
            'main@' : {
                template : require('./views/review_company.html'),
                controller : 'review_company',
            }
        },
        resolve:{

        }
    })
    //待办列表
    .state('app.alevelIndexCategory', {
        url: "/alevelIndexCategory?type",
        views: {
            'main@' : {
                template : require('./views/alevelIndexCategory.html'),
                controller : 'alevelIndexCategory',
            }
        },
        resolve:{
            
        }
    })

    .state('app.addCategory', {
        url: "/addCategory",
        views: {
            'main@' : {
                template : require('./views/addCategory.html'),
                controller : 'addCategory',
            }
        },
        resolve:{

        }
    })
    //待审核景区列表
    .state('app.unaudited_viewlist', {
        url: "/unaudited_viewlist",
        views: {
            'main@' : {
                template : require('./views/unaudited_viewlist.html'),
                controller : 'unaudited_viewlist',
            }
        },
        resolve:{

        }
    })
    //已通过景区列表
    .state('app.passed_viewlist', {
        url: "/passed_viewlist",
        views: {
            'main@' : {
                template : require('./views/passed_viewlist.html'),
                controller : 'passed_viewlist',
            }
        },
        resolve:{

        }
    })
    //已通过景区列表
    .state('app.rejected_viewlist', {
        url: "/rejected_viewlist",
        views: {
            'main@' : {
                template : require('./views/rejected_viewlist.html'),
                controller : 'rejected_viewlist',
            }
        },
        resolve:{

        }
    })
    //景区项目列表
    .state('app.viewproject_list', {
        url: "/viewproject_list",
        views: {
            'main@' : {
                template : require('./views/viewproject_list.html'),
                controller : 'viewproject_list',
            }
        },
        resolve:{

        }
    })
    //评定员打分列表
    .state('app.mark_list', {
        url: "/mark_list",
        views: {
            'main@' : {
                template : require('./views/mark_list.html'),
                controller : 'mark_list',
            }
        },
        resolve:{

        }
    })
    
};

module.exports = router;